# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=multitail
pkgver=7.1.5
pkgrel=0
pkgdesc="MultiTail lets you view one or multiple files like the original tail program"
arch="all"
url="http://www.vanheusden.com/multitail"
license="Apache-2.0"
depends="ncurses coreutils"
makedepends="ncurses-dev cmake ninja"
checkdepends="cppcheck"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/folkertvanheusden/multitail/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests provided

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCURSES_INCLUDE_PATH=/usr/include .
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
7b52eaa9c99e8747f841b23ad3f7154d8cb65c5f4bd2f89fc80d37b6a2fecdacfd7657c5ba37356e67fd03f7992556af648b7d26bb730f7e8966d0230182a8a6  multitail-7.1.5.tar.gz
"
